package com.xiaomi.eco.scheduler;

import com.xiaomi.cloud.plan.client.plan.PlanExecutor;
import com.xiaomi.cloud.plan.client.spring.annotation.PlanTask;
import com.xiaomi.eco.dal.entity.EcoCompanyTaskListEntity;
import com.xiaomi.eco.service.EcoCompanyTaskListEntityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
@PlanTask(name = "EcoCompanyTaskList", quartzCron = "0 0 3 ? * *", description = "每天凌晨3点计算异常接口信息，填入任务表")
public class EcoCompanyTaskListTask implements PlanExecutor {

    @Autowired
    private EcoCompanyTaskListEntityService ecoCompanyTaskListEntityService;


    @Override
    public void execute() {
        ecoCompanyTaskListEntityService.insertEcoCompanyTaskListService();
    }
}
